package com.ruoyi.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 article
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 封面 */
    @Excel(name = "封面")
    private String image;

    /** 栏目 1:新闻动态 2:先锋事迹 */
    @Excel(name = "栏目 1:新闻动态 2:先锋事迹")
    private Integer type;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图文来源 1:自建图文 2:来源外网 */
    @Excel(name = "图文来源 1:自建图文 2:来源外网")
    private Integer source;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 是否置顶 1:置顶 */
    @Excel(name = "是否置顶 1:置顶")
    private Integer isTop;

    /** 是否推荐 1:推荐 */
    @Excel(name = "是否推荐 1:推荐")
    private Integer isRecommend;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSource(Integer source) 
    {
        this.source = source;
    }

    public Integer getSource() 
    {
        return source;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setIsTop(Integer isTop) 
    {
        this.isTop = isTop;
    }

    public Integer getIsTop() 
    {
        return isTop;
    }
    public void setIsRecommend(Integer isRecommend) 
    {
        this.isRecommend = isRecommend;
    }

    public Integer getIsRecommend() 
    {
        return isRecommend;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("image", getImage())
            .append("type", getType())
            .append("title", getTitle())
            .append("source", getSource())
            .append("author", getAuthor())
            .append("isTop", getIsTop())
            .append("isRecommend", getIsRecommend())
            .append("createTime", getCreateTime())
            .toString();
    }
}
